import { getClassInfo1, getPlanLists } from "@/services/modules/planList";

import { planList, planLists } from "@/utils"
import { makeAutoObservable } from "mobx"

class PlanList {
    constructor() {
        makeAutoObservable(this);
    }
    // 定義數據借樓的属性类型
    PlanList: planLists[] = []
    // 定义初始ID接口
    getclassInfo: string = "";
    searchname: string = "";
    // 请求ID接口
    async getClassInfo() {
        let result = await getClassInfo1();
        this.getclassInfo = result.data[0].id,
         this.searchname = result.data[0].classname
    }
    //获取表格接口
       async  getPlanLists(){
           let result =await getPlanLists();
           console.log(result);
       }
}

export default new PlanList